<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
    <title>{$title}</title>
</head>
<style>
    * {
        margin: 0;
        padding: 0;
    }

    body, html {
        width: 100%;
        height: 100%;
        background: linear-gradient(to bottom, #ee5a58, #f3a074);
        overflow-y: hidden;
    }

    .ioc {
        margin-top: 13%;
        text-align: center;
    }

    .ioc img {
        width: 40%;
    }

    .ming {
        width: 100%;
        color: white;
        text-align: center;
    }

    .ming h1 {
        font-size: 24px;
        margin: 10px 0 15px;
    }

    .ming img {
        height: 35px;

    }

    .ming span {
        float: left;
        font-size: 18px;
        color: #666;
        font-weight: bold;
        line-height: 40px;

    }

    .gengxin {
        margin-top: 10px;
        margin-left: 15%;
        padding-top: 10px;
        width: 70%;
        text-align: center;
        border-top: 1px solid #999;

    }

    .xiazai {
        width: 60%;
        height: 40px;
        background: #fff;
        text-align: center;
        line-height: 40px;
        border-radius: 6px;
        color: orangered;
        margin-left: 20%;
        margin-top: 5%;
        box-shadow: 0px 2px 3px 2px #ff5e1f;
    }

    .layui-layer {
        left: 2.5% !important;
    }

    .code {
        text-align: center;
    }

    .code img {
        width: 40%;
        margin-top: 3%;
        padding: 8px;
        box-sizing: border-box;
        border-radius: 6px;
    }

    #bg {
        position: fixed;
        background: rgba(0, 0, 0, 0.9);
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        z-index: 99;
        display: none
    }

    .content > div {
        display: flex;
        align-items: center;
        margin-bottom: 8%;
        color: white;
        padding: 0 15px;
        font-size: 18px;
    }

    .content > div > p {
        background: red;
        width: 30px;
        height: 30px;
        line-height: 30px;
        text-align: center;
        border-radius: 50%;
        margin-right: 4%
    }

    .arrow {
        position: absolute;
        top: 10px;
        right: 10px;
        width: 30%;
    }

    .content > div img {
        width: 40px;
        margin: 0 8px;
    }
</style>
<body>
<div class="ioc">
    <img src="{:config('HOME_LOGO')}"/>
</div>
<div class="ming">
    <h1>{:config('WEB_SITE')}</h1>
    <p>大小40MB</p>
</div>
<div class="xiazai">
    下载安装/wap版本
</div>
<div class="code">
    <p style="font-size:24px;color:#f0a94e;text-align: center;margin-top:5%">二维码安卓/苹果自适应</p>
    <img src="__WAP__/images/app.png" alt="" id="code">
    <p style="color:white;font-size:16px;margin-top:5%;">手机扫描二维码安装</p>
</div>

<div id="bg">
    <div class="content">
        <img src="__WAP__/images/jiantou.png" alt="" class="arrow">
        <div style="margin-top:55%">
            <p><span>1</span></p>点击右上角的<img src="__WAP__/images/caidan.png" alt="">按钮
        </div>
        <div>
            <p><span>2</span></p>选择<img src="__WAP__/images/liulanqi.png" alt="">在浏览器中打开
        </div>
    </div>
</div>
{include file="wap/public/js" /}
<script>
    $('.xiazai').click(function () {
        var wx = "{$wx}";
        if (wx) {
            showUpload();
            return false;
        }
        var u = navigator.userAgent, app = navigator.appVersion;
        var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Linux') > -1; //g
        var isIOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
        if (isAndroid) {
            location.href = "https://liande.oss-cn-beijing.aliyuncs.com/download/htbsc.apk";
        }
        if (isIOS) {
            location.href = "http://shops.hnliandesy.com/h5/#/";
        }
    });

    function showUpload() {
        $('#bg').show()
    }
</script>
</body>
</html>
